package ch7.DiningPhilosophers;

public class Chopstick {
    public final int id;
    private Status status = Status.PUT_DOWN;

    public static enum Status {
        PICKED_UP,
        PUT_DOWN
    }

    public Chopstick(int id) {
        super();
        this.id = id;
    }

    public void pickUp() {
        this.status = Status.PICKED_UP;
    }

    public void putDown() {
        this.status = Status.PUT_DOWN;
    }
}
